using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rotempco.Core.ORM.Objects.Stores;

namespace Rotempco.Core.ORM.Objects
{
    public class DBConnection
    {
        public string ConnectionString { get; private set; }

        public DBConnection()
        {
            if (DatabaseSettingsStore.Instance.CurrentDatabase != null)
                ConnectionString = DatabaseSettingsStore.Instance.CurrentDatabase.ConnectionString;
            else
                ConnectionString = null;
        }

        public DBConnection(string connectionString)
        {
            ConnectionString = connectionString;
        }
    }
}
